<!--  -->
<template>
  <div class="login">
    <div class="part">
      <div class="ms-title">天宝报表系统</div>
      <div class="input_box">
        <div class="user_input">
          <span>用户名:</span>
          <el-input
            type="text"
            v-model="name"
            placeholder="请输入您的用户名"
          ></el-input>
        </div>
        <div class="psd_input">
          <span>密码:</span>
          <el-input
            type="password"
            v-model="psd"
            placeholder="请输入您的密码"
          ></el-input>
        </div>
        <vue-simple-verify ref="verify" @success="success" />
        <div class="btn">
          <button @click="logincust">客户登录</button>
          <button
            style="background: rgba(251, 185, 85, 0.85); margin-top: 10px"
            @click="login"
          >
            管理员登录
          </button>
        </div>
        <div class="regedit">
          <span>Tips : 请输入用户名和密码（区分大小写）</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  data() {
    return {
      name: "",
      isShow: false,
      psd: "",
      isCode: 0,
      isPhone: "",
      open_id: "",
    };
  },
  mounted() {
  },
  created() {},
  methods: {
    change() {
      this.isShow = !this.isShow;
    },
    logincust() {},
    login() {},
    success() {},
  },
};
</script>

<style lang='less' scoped>
.login {
  background: url(../assets/img/logo_bg.jpg) no-repeat center;
  width: 100vw;
  height: 100vh;
  background-size: 100% 100%;
  position: relative;
  .part {
    border: 1px solid black;
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 340px;
    margin: -190px 0 0 -175px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.35);
    padding: 10px 0;
    .ms-title {
      text-align: center;
      color: white;
    }
    .input_box {
      width: 300px;
      margin: 0 auto;
      input {
        border-radius: 5px;
        font-size: 14px;
        border: 1px solid #dcdcdc;
        height: 35px;
        margin-bottom: 15px;
        padding: 0 10px;
      }
      .psd_input {
        margin-top: 5px;
      }
      .user_input,
      .psd_input {
        display: flex;
        flex-direction: column;
        position: relative;
        span {
          font-size: 13px;
          color: #fff;
          margin-bottom: 7px;
          text-align: left;
        }
      }
      .btn {
        text-align: center;
        margin-top: 10px;
        button {
          width: 100%;
          background: rgba(77, 158, 255, 0.85);
          border-radius: 5px;
          color: #fff;
          height: 35px;
          border: none;
          font-size: 14px;
          height: 35px;
        }
      }

      .simple-verify {
        width: 300px !important;
        // margin-left: -20px !important;
        margin-top: 10px !important;
      }
    }
  }
}
</style>